﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>[$Title] - 农牧渔查询</title>
    <link href="[$SKIN_URL]style/base.css" type="text/css" rel="stylesheet" />
    <link href="[$SKIN_URL]style/common.css" type="text/css" rel="stylesheet" />
    <link href="[$SKIN_URL]style/subpage.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <div class="w1003">
        <include file="head.html" />
    </div>
    <div class="w985 mt5 f12 lh200 position">
        <div>
            <span>您所在位置：</span>
            <loop name="NodeInfo.Navigation" key="key" var="var">
		<if test="$key == 1" >
		 <A href="[$var.URL]"> 首页 </A>
		<else>
		> <A href=" [$var.URL] "> [$var.Name] </A>
		</if> 
	</loop>
        </div>
    </div>
    <div class="w985" style="padding: 0 4px 10px;">
        <div class="cont">
            <h1 class="tc">
                [$Title]</h1>
            <div class="tc f12 lh200 contTime">
                <span class="fb">时间：</span>[@date('yyyy-MM-dd hh:mm',$PubTime)]<span class="fb ml20">发布人：</span>[$Author]<span class="fb ml20">访问次数：</span><script src="[$InfoClickSubmit]?id=[$contentid]&show=true"></script>次</div>
            <div class="f14 content">
                [$Content]
                <div class="tr f12 operation">
                    <a href="[$SITE_URL]" class="home">返回主页</a><a href="index.html" class="higher">返回上级</a><a onclick="printpreview();" style="cursor: pointer;" class="print">打印此文</a></div>
            </div>
        </div>
    </div>
    <script>

        var hkey_root, hkey_path, hkey_key;
        hkey_root = "HKEY_CURRENT_USER";
        hkey_path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
        //配置网页打印的页眉页脚为空
        function pagesetup_null() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell");
                hkey_key = "header";
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "");
                hkey_key = "footer";
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "");
                //&b 第&p页/共&P页 &b
            } catch (e) { }
        }
        //打印页面预览
        function printpreview() {
            pagesetup_null();
            //wb.printing.header = "居左显示&b居中显示&b居右显示页码，第&p页/共&P页";
            //wb.printing.footer = "居左显示&b居中显示&b居右显示页码，第&p页/共&P页";
            try {
                wb.execwb(7, 1);
            } catch (e) {
                alert("您的浏览器不支持此功能,请选择'文件'->'打印预览'");
            }
        }
    </script>
    <div class="w1003">
        <include file="foot.html" />
    </div>
</body>
</html>

